Skip to content

Conversation

@ojopiyo
Copy link
Contributor

@ojopiyo ojopiyo commented Dec 11, 2025

Improvements / Safety Features

  1. Error Handling - The try/catch block ensures the script reports errors instead of failing silently.
  2. Check for Existing URL - Prevents overwriting a folder or list that already exists at the target URL.
  3. Updates List Object Directly - Set-PnPList -Identity $list avoids confusion after moving the folder.
  4. Informative Output - Write-Host shows clear messages on success or failure.

ojopiyo and others added 2 commits December 11, 2025 20:29
Improvements / Safety Features
1. Error Handling - The try/catch block ensures the script reports errors instead of failing silently.
2. Check for Existing URL - Prevents overwriting a folder or list that already exists at the target URL.
3. Updates List Object Directly - Set-PnPList -Identity $list avoids confusion after moving the folder.
4. Informative Output - Write-Host shows clear messages on success or failure.
@pkbullock pkbullock merged commit 935b752 into pnp:main Dec 18, 2025
@pkbullock
Copy link
Collaborator

Thank you @ojopiyo - great updates, thank you for improving these. This will be live shortly 🎉👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants